package com.zondy.mapgis.psmap.api.plugin;

import org.pf4j.ExtensionPoint;

import javax.servlet.http.HttpServletRequest;

public interface LoginExtension extends ExtensionPoint {
   UserInfo getUserInfo(HttpServletRequest var1);

   public static class UserInfo {
      String username;
      String password;

      public String getUsername() {
         return this.username;
      }

      public String getPassword() {
         return this.password;
      }

      public void setUsername(String username) {
         this.username = username;
      }

      public void setPassword(String password) {
         this.password = password;
      }

      public boolean equals(Object o) {
         if (o == this) {
            return true;
         } else if (!(o instanceof UserInfo)) {
            return false;
         } else {
            UserInfo other = (UserInfo)o;
            if (!other.canEqual(this)) {
               return false;
            } else {
               Object this$username = this.getUsername();
               Object other$username = other.getUsername();
               if (this$username == null) {
                  if (other$username != null) {
                     return false;
                  }
               } else if (!this$username.equals(other$username)) {
                  return false;
               }

               Object this$password = this.getPassword();
               Object other$password = other.getPassword();
               if (this$password == null) {
                  if (other$password != null) {
                     return false;
                  }
               } else if (!this$password.equals(other$password)) {
                  return false;
               }

               return true;
            }
         }
      }

      protected boolean canEqual(Object other) {
         return other instanceof UserInfo;
      }

      public int hashCode() {
         boolean PRIME = true;
         int result = 1;
         Object $username = this.getUsername();
         result = result * 59 + ($username == null ? 43 : $username.hashCode());
         Object $password = this.getPassword();
         result = result * 59 + ($password == null ? 43 : $password.hashCode());
         return result;
      }

      public String toString() {
         return "LoginExtension.UserInfo(username=" + this.getUsername() + ", password=" + this.getPassword() + ")";
      }
   }
}
